package com.ittest.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ittest.domain.Book;

import java.util.List;

public interface IBookservice extends IService<Book> {

    public Book getById(Integer id);

    Boolean update(Book book);

    Boolean delete(Integer id);

    boolean save(Book book);

    List<Book> getAll();
    IPage<Book> getPage(int currentPasge, int pageSize);
    IPage<Book> getPage(int currentPasge, int pageSize, Book book);}
